package com.hsylient.javase.chapter13;

import java.util.Arrays;
import java.util.Date;

/**
 * 提供一个学生类，供反射的时候使用
 *
 * 测试不同的权限修饰符
 */
public class Student {
    public Integer id;
    String name;
    protected Integer age;
    private Date[] birthday;

    public Student() {
    }

    public Student(Integer id, String name, Integer age, Date[] birthday) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", birthday=" + Arrays.toString(birthday) +
                '}';
    }
}
